//该文件用于创建Vuex中最为核心的store
import Vue from 'vue'
import Vuex from 'vuex'

import actions from './actions'
import mutations from './mutations'

import searchOptions from './modules/search'
import downloadOptions from './modules/download'

Vue.use(Vuex);


// 创建并暴露store
export default new Vuex.Store({
    strict: false,

    state: {
        dataList: [], // 所有数据所在列表
    },

    actions: actions,
    mutations: mutations,
    modules: {
        search: searchOptions,// 搜索页面模块
        download: downloadOptions,// 下载页面模块
    },
})